package cn.laixueit.service;

import cn.laixueit.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component(value = "studentService")
public class StudentService {

    @Autowired
//    @Qualifier(value = "studentDao")
//    @Resource
    private StudentMapper studentMapper;


    @Value("zhangsan")
    private String name;

    public void add(){
        System.out.println("student  add....");
        System.out.println(name);
        studentMapper.add();
    }
}
